package com.huiyi.ai.server;

import com.huiyi.ai.core.constants.HAIConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication(scanBasePackages = HAIConstants.BASE_COMPONENT_SCAN_PATH)
@ServletComponentScan(basePackages = {HAIConstants.BASE_COMPONENT_SCAN_PATH})
@MapperScan(basePackages = HAIConstants.BASE_COMPONENT_SCAN_PATH + ".server.modules.**.mapper")
public class HAIApplication {

    public static void main(String[] args) {
        SpringApplication.run(HAIApplication.class, args);
    }

}
